package com.example.eightapi.controller;

import com.example.eightapi.pojo.age_num;
import com.example.eightapi.service.AgenumService;
import com.example.eightapi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class AgenumController {
    @Autowired
    private AgenumService agenumService;
   @GetMapping("/queryAllagenum")
    public ResponseResult<List<age_num>> queryAllagenum (){
        List<age_num>pf =agenumService.queryAllagenum();
            return new ResponseResult<>("200","查询成功",pf);
    }
}
